<script setup lang="ts">
    import {ref,reactive} from 'vue'
    let cc2 = ref('儿子2-重九')
    let age = ref(18)
    //让数据暴露出去
    defineExpose({cc2,age})
</script>
<template>
    <h3>$refs-子组件2-{{ cc2 }},年龄:{{ age }}</h3>
</template>
<style scoped>
   
</style>